package com.system.dao;

import com.system.entity.Student;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;
import java.util.Map;
@CrossOrigin
@Repository
public interface StudentMapper {
    int deleteByPrimaryKey(Long stuId);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Long stuId);

    public Student findByUserName(String stu_name);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    public List<Student> findList(Map<String, Object> queryMap);

    public List<Student> findAll();

    public int getTotal(Map<String, Object> queryMap);
}
